package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.DmcCsunCameraWebRtcMapper;
import com.csun.cmny.provider.model.domain.DmcCsunCameraWebRtc;
import com.csun.cmny.provider.model.domain.DmcDevice;
import com.csun.cmny.provider.model.dto.webrtc.WebRtcClientQueryDto;
import com.csun.cmny.provider.model.vo.webrtc.WebRtcClientVo;
import com.csun.cmny.provider.service.DmcCsunCameraWebRtcService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020/7/21 17:10
 * @Description: TODO
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DmcCsunCameraWebRtcServiceImpl extends BaseService<DmcCsunCameraWebRtc> implements DmcCsunCameraWebRtcService {

    @Resource
    private DmcCsunCameraWebRtcMapper dmcCsunCameraWebRtcMapper;

    @Override
    public List<WebRtcClientVo> queryListWithPage(WebRtcClientQueryDto webRtcClientQueryDto) {

        return dmcCsunCameraWebRtcMapper.queryListWithPage(webRtcClientQueryDto);
    }

    @Override
    public DmcCsunCameraWebRtc selectByDeviceId(Long deviceId) {

        return dmcCsunCameraWebRtcMapper.selectByDeviceId(deviceId);
    }

    @Override
    public List<DmcDevice> queryNotBindCameraList() {

        return dmcCsunCameraWebRtcMapper.queryNotBindCameraList();
    }
}
